home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11421 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  917 b 

  1. Path: news.informatik.uni-kiel.de!usenet
  2. From: Steffen Boerm <sbo@numerik.uni-kiel.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Different "new" in g++ and TC++
  5. Date: Thu, 14 Mar 1996 16:19:54 +0100
  6. Organization: Mathematisches Seminar, Bereich 2, Uni Kiel, Deutschland
  7. Message-ID: <3148391A.4646@numerik.uni-kiel.de>
  8. NNTP-Posting-Host: newton.informatik.uni-kiel.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4m)
  13.  
  14. Hi,
  15.  
  16. when A is a class with constructor A::A() and n is an
  17. integer, apparently g++ and TC++ 3.0 do different jobs
  18. on the expression "new A[n]": TC++ calls the constructor
  19. apparently for every created object, while g++ does not.
  20.  
  21. Who's wrong? I'd expect TC++ to be correct since it
  22. would look strange to me that there was a way in C++
  23. to create objects without the use of constructors ;-)
  24.  
  25. Best regards, Steffen 8-)
  26.